package com.scu.hotelsystem.dao;

import com.scu.hotelsystem.pojo.Vip;
import com.scu.hotelsystem.pojo.VipSearch;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VipDao {

    public List<Vip> getVipListByPage(@Param("index")int index, @Param("limit")int limit, @Param("search")VipSearch search);

    public  int getVipCount(@Param("search")VipSearch search);

    /*
   根据id删除vip
    */
    public int delVip(@Param("guest_id")Integer guest_id);


    int addVip(@Param("vip") Vip vip);
}
